package com.star.rpc.fault.retry;

import com.star.rpc.modal.RpcResponse;

import java.util.concurrent.Callable;

/**
 * packageName com.star.rpc.fault
 *
 * @author zerostart
 * @className RetryStrategy
 * @date 2024/12/10
 * @description 重试策略
 */
public interface RetryStrategy {

    /**
     * 重试策略
     *
     * @return 是否重试
     */
    RpcResponse doRetry(Callable<RpcResponse> callable) throws Exception;


}
